/*
 * @Descripttion: 
 * @version: 
 * @Author: turingchang
 * @Date: 2020-12-16 11:14:48
 * @LastEditors: turingchang
 * @LastEditTime: 2020-12-21 15:04:16
 */

module.exports = app => {
    const {router,controller} = app;
    const homeRouter = router.namespace('/home');
    const jsonp = app.jsonp();

    homeRouter.get('/',jsonp,controller.home.home.test);
    homeRouter.get('/test',jsonp,controller.home.home.test);
    // router.redirect('/news/list','/news');//重定向使用router而不是homeRouter
} 